package org.metasketch.simulator.configuration.loaders;

import org.metasketch.simulator.petri.PetriNet;
import org.metasketch.simulator.resources.Resource;
import org.metasketch.simulator.resources.ResourceBase;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("transaction")
public class Transaction {

	@XStreamAsAttribute
	String id;

	@XStreamAsAttribute
	String name;

	PetriNet petriNet;

	ResourceBase actorRoleResource;

	boolean createResource = true;

	public void setCreateResource(boolean createResource) {
		this.createResource = createResource;

	}

	public boolean isCreateResource() {
		return createResource;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public PetriNet getPetriNet() {
		return petriNet;
	}

	public void setPetriNet(PetriNet petriNet) {
		this.petriNet = petriNet;
	}

	public ResourceBase getActorRoleResource() {
		return actorRoleResource;
	}

	public void setActorRoleResource(ResourceBase actorRoleResource) {
		this.actorRoleResource = actorRoleResource;
	}

}
